package example.other;


import com.wh.client.localHeiLongJiang.CSPResponse;
import com.wh.client.localHeiLongJiang.CSPResponseServiceLocator;
import com.wh.client.localHeiLongJiang.CSPResult;

public class LocalClient {
  public static void main(String[] argv) {
      try {
          CSPResponseServiceLocator locator = new CSPResponseServiceLocator();
          CSPResponse service = locator.getctms();
          String fipUrl =
                  "ftp://hljyy:wasu2019@10.20.30.50:21/ceshi//add_HeiLongJiangXMT_CP23010020191112068109_c912bf4e7f684a3fb559d23c84084e12.xml";
          CSPResult result = service.resultNotify("WASUHLGXMT","HQY","6308925",0,fipUrl);

          System.out.println("开始执行main方法 fipUrl "+result.getResult());
      } catch (javax.xml.rpc.ServiceException ex) {
          ex.printStackTrace();
      } catch (java.rmi.RemoteException ex) {
          ex.printStackTrace();
      }
  }

//    public static void main(String[] args) {
//        HelloWorldServiceLocator locator = new HelloWorldServiceLocator();
//        try {
//            HelloWorld_PortType portType = locator.getHelloWorld();
//            portType.sayHelloWorldFrom("ceshi");
//
//        } catch (ServiceException | RemoteException e) {
//            e.printStackTrace();
//        }
//    }
}
